import { constantRoute } from './routes'
import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(), //hash路由模式
  routes: constantRoute, //所有路由
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    }
  },
})

export default router
